package com.spic.business.alarm.controller;

import com.spic.business.alarm.service.IFangPengZhuangAlarmDataService;
import com.spic.common.core.web.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 290512
 * @create 2022-04-09 13:50
 */
@RestController
public class FangPengZhuangAlarmDataController {
    @Autowired
    private IFangPengZhuangAlarmDataService fangPengZhuangAlarmDataService;

    @GetMapping("fpzAlarmList")
    public AjaxResult fpzAlarmList(String dateType) {
        return AjaxResult.success(fangPengZhuangAlarmDataService.selectAlarmList(dateType));
    }

    @GetMapping("fpzAlarmDetaliList")
    public AjaxResult fpzAlarmDetaliList(String type, String dateType) {
        return AjaxResult.success(fangPengZhuangAlarmDataService.selectAlarmDetaliList(type, dateType));
    }

    @GetMapping("fpzAlarmTypeList")
    public AjaxResult fpzAlarmTypeList() {
        return AjaxResult.success(fangPengZhuangAlarmDataService.selectAlarmType());
    }

}
